//导入service对象
import service from "../utiles/request/index";


// 工资发放
export function payroll_list(payload = {}) {
    return service.get('/salary/payroll_list', { params: payload })
}
// 工资添加
export function payroll_add(payload = {}) {
    return service.post('/salary/payroll_add', payload)
}
// 工资编辑
export function payroll_edit(payload: any = {}) {
    return service.post('/salary/payroll_edit', payload)
}
// 工资删除
export function payroll_delete(payload: any = {}) {
    return service.get('/salary/payroll_delete/' + payload.id, { params: payload })
}

// 工资单设置
// 工资单列表
export function settings_list(payload = {}) {
    return service.get('/salary/settings_list', { params: payload })
}
// 工资单添加
export function settings_add(payload = {}) {
    return service.post('/salary/settings_add', payload)
}
// 工资单编辑
export function settings_edit(payload: any = {}) {
    return service.post('/salary/settings_edit', payload)
}
// 工资单删除
export function settings_delete(payload: any = {}) {
    return service.get('/salary/settings_delete/' + payload.id, { params: payload })
}

// 详情
// 列表
export function informaction_list(payload = {}) {
    return service.get('/salary/informaction_list', { params: payload })
}
// 工资单添加
export function informaction_add(payload = {}) {
    return service.post('/salary/informaction_add', payload)
}
// 工资单编辑
export function informaction_edit(payload: any = {}) {
    return service.post('/salary/informaction_edit', payload)
}
// 工资单删除
export function informaction_delete(payload: any = {}) {
    return service.get('/salary/informaction_delete/' + payload.id, { params: payload })
}

// 工资单详情
// 列表
export function details_list(payload = {}) {
    return service.get('/salary/details_list', { params: payload })
}
// 工资单添加
export function details_add(payload = {}) {
    return service.post('/salary/details_add', payload)
}
// 工资单编辑
export function details_edit(payload: any = {}) {
    return service.post('/salary/details_edit', payload)
}
// 工资单删除
export function details_delete(payload: any = {}) {
    return service.get('/salary/details_delete/' + payload.id, { params: payload })
}